home *** CD-ROM | disk | FTP | other *** search
-
-
- GPT-Kit v1.00 (930911)
-
- (C) 1993 by Stefan Pfeiffer, DL1ELY@DB0IZ.#NRW.DEU.EU
-
-
-
- 0. Contents
-
- 1. Introduction
- 2. Using the GPT-Kit
- 2.1. Changing a existing GPT-file
- 2.2. Translating a GPT-file
- 2.3. Updating a GPT-file
- 3. Files
- 3.1. DEFS.TFC
- 3.2. Headerfiles
- 3.3. Sourcefiles
-
-
-
- 1. Introduction
-
-
- GPT-Kit v1.00 is written by Stefan Pfeiffer, DL1ELY.
- It consists of three independent programs to manipulate the GPT-files
- distributed with GP.
- The programs are:
-
- GPT2TXT.EXE - Decompiles a binary GPT-file to 2 ASCII-textfiles
- TXT2GPT.EXE - Compiles the ASCII-textfiles back to a binary GPT-file
- GPTUPD.EXE - Updates a GPT-file to a new GP-version by filling the
- gaps with the contents of a newer GPT-file.
-
- There is also the file DEFS.TFC, which also belongs to the GPT-Kit.
- It is needed by GPT2TXT and TXT2GPT, and is dependant on the GP-version
- used. When upgrading to a new GP-version, you only need to replace the
- old DEFS.TFC by a new one (it will be distributed with GP). The programmes
- themselves are independent of the used GP-version!
-
- This kit enables any user to change his GPT-files to his own taste or to
- translate them to their favorite language. Furtheron it allows the user
- to use his GPT-files with a new GP-version by updating them.
-
- The programmes of the kit are protected by copyright and may be used under
- the restrictions of the ALAS license (see file ALAS.TXT).
-
- This kit may be used and copied freely, but if you think it is worthful to
- you, I surely appreciate a contribution to the following address:
-
- Stefan Pfeiffer, DL1ELY@DB0IZ.#NRW.DEU.EU
- Kurfürstenring 13
- D-46562 Voerde
-
- or:
-
- bank : Volksbank Voerde
- account number : 503 057 018
- bank code number : 356 618 08
-
- Please think of the work and the money I invested in this project, and that
- a contribution will motivate me to continue the development of this and
- other GP-related programmes. A pupil's income is not that high, hi.
- Thank you :)
-
-
-
- 2. Using the GPT-Kit.
-
-
- You can use the GPT-Kit for different purposes. You can
-
- 1) change a existing GPT-file
- 2) translate a GPT-file to another language
- 3) update a GPT-file to fit to a new GP-version.
-
- Please be careful and watch wildcards which might occur in some strings,
- or spaces for formatting purposes! They might be needed to build a nice
- screen! Please test every GPT-files you have changed or translated before
- distributing them.
-
-
- 2.1. Changing a existing GPT-file
-
- To change a existing GPT-file, do the following steps:
-
- - Decompile the GPT-file with GPT2TXT.EXE to readable files.
- For example: GPT2TXT G would decompile the file G.GPT to G.HDR
- (which contains the header of the GPT-file) and G.SRC (which contains
- the strings).
-
- - Then use an ordinary ASCII-editor to change the source- and/or the
- header-file (G.SRC and G.HDR in our example).
- Be careful when doing this task! Especially changes to the header-
- file are dangerous.
-
- - At last compile the changed files back to a GPT-file.
- In our example you have to type TXT2GPT G to build the new G.GPT
- from G.HDR and G.SRC. The old G.GPT will overwritten!
-
-
- 2.2. Translating a GPT-file to another language
-
- To translate a GPT-file, do the following steps:
-
- - Choose DL.GPT or G.GPT to translate from, and copy it to a new file
- by using the DOS COPY-command, for example COPY G.GPT MYLANG.GPT
-
- - Decompile this new GPT-file with GPT2TXT.
-
- - fill in a new language name in the headerfile (up to 12 characters).
-
- - Translate each string in the sourcefile carefully.
-
- - Compile both files to a GPT-file using TXT2GPT. The old GPT-file will
- be overwritten.
-
-
- 2.3. Updating a GPT-file
-
- To update a GPT-file, do the following steps:
-
- - Make sure that the file DEFS.TFC belonging to your GP-version is
- in the current directory.
-
- - Fill the gaps in your GPT-file with the strings from DL.GPT or G.GPT
- by using GPTUPD. For example: GPTUPD MYLANG G
- This will fill the gaps in MYLANG.GPT with the strings of G.GPT.
- The old MYLANG.GPT will be renamed to MYLANG.BAK.
-
- - Please notice that the files DEFS.TFC, DL.GPT and G.GPT have to belong
- to the same GP-version!
-
- - Now decompile the updated GPT-file with GPT2TXT and translate the
- new strings which have been inserted.
-
- - At last compile the source- and the headerfile back to a GPT-file.
-
-
-
- 3. File formats
-
-
- 3.1. DEFS.TFC
-
- DEFS.TFC is the version-dependent part of the GPT-Kit. For each new GP-
- version a new DEFS.TFC is needed. It will be included in the official GP-
- package. Please make sure that you are using an up-to-date file.
-
- DEFS.TFC contains the string-length-limits and comments needed bei GPT2TXT
- and TXT2GPT.
-
-
- 3.2. Headerfiles
-
- Headerfiles contain the decompiled header of a GPT-file.
- The first line is ALWAYS a comment and will be ignored on compiling.
- The next 4 lines contain the content of the header-text in hexadecimal
- values, 32 bytes in each line. If you change the header and its length
- is unequal 128 bytes, it will be filled with spaces or truncated.
- Normaly there is no need to change the text.
-
- In the fifth line you find the name of the language in the corresponding
- GPT-file. It has to be uppercase, and it may not be longer than 12 characters. You have to change this name when translating a GPT-file.
- The last line contains the number of error-, remote-, and system-strings
- in the GPT-file, seperated by commas. Do not change this line!
-
-
- 3.3. Sourcefiles
-
- Sourcefiles contain the strings of a GPT-file.
- Lines starting with a ; are treated as a comment, if you want a string to
- start with the ;, you have to use a ;;. For example, ";123" will become
- ";;123".
-
- If you want to insert ASCII-values not on your keybord, you can do so
- by using the macro @xxx, where xxx is the ASCII-value you want to insert.
- It must have the length of 3 digits! For example, if you want to insert a
- CR, just type @013 to insert the ASCII-value 13. The values have to be in
- decimal notation.
-
- A comment belongs to every string stating its minimum and maximum length
- and an optional description of the string. If a string is shorter than its
- minimum length, it will be filled with spaces, if it longer than its
- maximum length, it will be truncated. The string-lengths are counted
- WITHOUT the ~ used in the systemstrings to mark a hotkey, as it will not
- be displayed.
-
- Again, please be very careful when changing the GPT-files. GP can get VERY
- confused if a GPT-file is incorrect. Take care of spaces for formatting
- purposes and wildcards for filenames, numbers or calls!
-
-
-
-
-
- Have much fun changing and translating your own GPT-files!
-
- Stefan Pfeiffer, 930911